package com.example.aoplog.controller;

import com.example.aoplog.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author achen
 * @create 2021-10-26 16:27
 */
@RestController
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/user/selectAll")
    public String selectAll(){
        return userService.selectAll();
    }

    @GetMapping("/user/addUser")
    public String addUser(){
        return userService.addUser();
    }
}
